#ifndef __BASE_DECODER_H__
#define __BASE_DECODER_H__

struct ImageData
{
	bool bSucceeded;
	byte* pBuffer;
	size_t nSize;

	int nWidth;
	int nHeight;

	ImageData()
	{
		pBuffer = NULL;
	}

	void ReleaseBuffer()
	{
		delete[] pBuffer;
		pBuffer = NULL;
	}
};

class BaseDecoder
{
public:
	virtual ImageData GetImageData() = 0;
};

#endif